package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.GradeBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * @Title: IGradeMapper
 * @Package: com.project.mapper
 * @Description:
 * @Author: Liang-Xie
 */
@SuppressWarnings("all")

@Mapper
public interface IGradeMapper extends BaseMapper<GradeBean> {

    List<GradeBean> findByRoleId(Integer roleId);

    void addAll(@Param("roleId") Integer roleId,
                @Param("gradeIdArray") Integer[] gradeIdArray);
}
